<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
  <script src="/lib/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"sophimp.gitee.io","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="firda很强大, 使用起来的脚本语言">
<meta property="og:type" content="article">
<meta property="og:title" content="frida使用">
<meta property="og:url" content="http://sophimp.gitee.io/2020/11/12/android/reverse/frida-usage/index.html">
<meta property="og:site_name" content="Sophimp&#39;s Space">
<meta property="og:description" content="firda很强大, 使用起来的脚本语言">
<meta property="article:published_time" content="2020-11-12T09:21:16.000Z">
<meta property="article:modified_time" content="2021-03-15T03:49:47.923Z">
<meta property="article:author" content="Sophimp">
<meta property="article:tag" content="SRE">
<meta property="article:tag" content="Frida">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://sophimp.gitee.io/2020/11/12/android/reverse/frida-usage/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-Hans'
  };
</script>

  <title>frida使用 | Sophimp's Space</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

	
	<script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"></script>
	

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Sophimp's Space</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">coding & thinking</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>

  <a href="https://github.com/sophimp" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-Hans">
    <link itemprop="mainEntityOfPage" href="http://sophimp.gitee.io/2020/11/12/android/reverse/frida-usage/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.png">
      <meta itemprop="name" content="Sophimp">
      <meta itemprop="description" content="A dream begin">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Sophimp's Space">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          frida使用
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2020-11-12 17:21:16" itemprop="dateCreated datePublished" datetime="2020-11-12T17:21:16+08:00">2020-11-12</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2021-03-15 11:49:47" itemprop="dateModified" datetime="2021-03-15T11:49:47+08:00">2021-03-15</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/SRE/" itemprop="url" rel="index"><span itemprop="name">SRE</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="Views" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">Views: </span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
            <div class="post-description">firda很强大, 使用起来的脚本语言</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h3 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h3><ol>
<li><p>预安装二进制包</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">pip install frida-tools <span class="comment"># CLI tools</span></span><br><span class="line">pip install frida       <span class="comment"># Python bindings</span></span><br><span class="line">npm install frida       <span class="comment"># Node.js bindings</span></span><br></pre></td></tr></table></figure></li>
<li><p>frida-server 与 frida-client<br><a href="https://frida.re/docs/android/" target="_blank" rel="noopener">官方Android示例</a><br>先下载最新的<a href="https://github.com/frida/frida/releases" target="_blank" rel="noopener">frida-server</a> 并解压, 然后将解压后的frida-server放在Android中/data/local/中运行</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">unzx frida-server.xz</span><br></pre></td></tr></table></figure>
</li>
<li><p>使用</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"># 使用这条命令经常会让程序重启挂死</span><br><span class="line">frida -U -f &lt;process_name&gt; -l &lt;script&gt;</span><br><span class="line"></span><br><span class="line"># 使用这条命令就很安全</span><br><span class="line">frida -U -F -l &lt;script&gt;</span><br></pre></td></tr></table></figure>

</li>
</ol>
<p>frida命令须带脚本执行，去掉-l, 所有的app都会黑屏。</p>
<h3 id="框架"><a href="#框架" class="headerlink" title="框架"></a>框架</h3><p>源码地址 <a href="https://github.com/frida" target="_blank" rel="noopener">https://github.com/frida</a></p>
<p>frida 核心还是 typescript, python脚本可以套一个壳子将 上述的命令操作代替了脚本</p>
<p>CMoudle 是javascript壳子里面套 C代码</p>
<p>所以直接看JavaScript的API即可。 </p>
<p>frida知道框架是咋回事了， 看看api提供了哪些能力， 也能对逆向的整体知识有个概念</p>
<h3 id="JavaScript-API"><a href="#JavaScript-API" class="headerlink" title="JavaScript API"></a>JavaScript API</h3><ol start="0">
<li>Runtime information</li>
</ol>
<p>Frida.version, Frida.heapSize, Script.runtime</p>
<ol>
<li>Process, Thread, Module and Memory</li>
</ol>
<p>Thread</p>
<p>Process</p>
<pre><code>注入进程对象，</code></pre><p>Module</p>
<pre><code>lib库对象</code></pre><p>ModuleMap</p>
<pre><code>new ModuleMap([filter]); 将当前hook的模块内存快照保存起来，封装了一些访问更新的方法。如可以查看指定进程的Module, 可以快速定位某个地址是否属于某个Module。</code></pre><p>Memory</p>
<pre><code>对内存操作的封装, </code></pre><p>MemoryAccessMonitor<br>    看名知义，内存访问监视器</p>
<p>CModule<br>    JavaScript框加上去解析c代码，直接将C代码编译成机器码放到内存中。<br>    对热回调(Hot Callback)很有用？ 什么是Hot Callback</p>
<p>ApiResolver</p>
<pre><code>允许根据名字快速查找函数， 前提是此globs允许</code></pre><p>DebugSymbol</p>
<pre><code>一个库的可调试符号表查询, 有些会查询不到。
address, name, moduleName, fileName, lineNumber</code></pre><p>Kernel</p>
<pre><code>内核api操作封装,  暂时没遇到使用场景, 用到时候再看</code></pre><ol start="2">
<li>Data Types, Function and Callback</li>
</ol>
<p>Int64, UInt64, NativePointer,  ArrayBuffer</p>
<p>NativeFunction, SystemFunction</p>
<p>NativeCallback</p>
<ol start="3">
<li>Network</li>
</ol>
<p>Socket通信提供了。<br>    Socket, SocketListener, SocketConnection</p>
<ol start="4">
<li>File and Stream</li>
</ol>
<p>文件I/O操作也提供了<br>    File, IOStream, InputStream, OutputStream, UnixInputStream, UnixOutputStream, Win32InputStream, Win32OutputStream</p>
<ol start="5">
<li>Database</li>
</ol>
<p>数据库操作也提供了<br>    SqliteDatabase, SqliteStatement</p>
<ol start="6">
<li>Instrument</li>
</ol>
<p>提供了工具链</p>
<p>Interceptor</p>
<pre><code>函数插桩，可以监听函数调用前，调用后, 替换当前函数实现等能力
Interceptor.attach(target, callbacks[, data]), target 是一个NativePointer, 指向被attach的函数
Interceptor.detachAll()
Interceptor.replace(target, replacement[, data]), replacement 是实现NativeCallback的对象
Interceptor.revert(target)
Interceptor.flush()</code></pre><p>Stalker</p>
<pre><code>用于线程跟踪，可以达到指令级的执行跟踪效果。
这个工具很强大啊， 可以达到动态调试效果</code></pre><p>WeakRef</p>
<pre><code>WeakRef.bind(value, fn) 当value被回收时， 触发回调fn, 返回一个id
WeakRef.unbind(id), 停止监听值的生命周期
这在绑定一种语言时很有帮助，绑定本地资源会占用本地资源， 如果绑定语言的脚本执行完毕， 需要释放本地资源, 可以使用WeakRef来引用。</code></pre><p>ObjC<br>    IOS平台，暂不关注</p>
<p>Java<br>    与Interceptor一起是Android应用层的主场。<br>    Java.perform(fn), 将当前线程附着于VM, 并调用此函数(在Java的回调中, fn不是必须的)。在应用的classloader不可用时，会延迟回调。如果不使用该应用的类, 可以使用Java.performNow(fn)<br>    Java.avaiable, 标识当前进程是否有Java VM加载<br>    Java.androidVersion, 标识Android当前运行版本<br>    Java.enumerateLoadedClasses(callbacks), 马上枚举所有加载的class, 回调返回class对象<br>    Java.enumerateLoadedClassesSync(), 同步反回所有加载的类名，以数组保存<br>    Java.enumerateMethods(query), 枚举满足query的所有方法，query的形式:”class!method”, with globs permitted. (globs are patterns you type, 这里是指query也支持部分正则的规则)。query的后缀还可以跟一个或多个修饰符(i: 大小写敏感, s: 包括方法签名, u:用户自定义的类, 不包括系统类)<br>    Java.scheduleOnMainThread(fn), 在主线程中运行 fn 方法<br>    Java.use(className), 动态获得一个javascript包装className的对象, 可以通过<code>$new()</code>调用className的构造函数创建一个实例, <code>$dispose()</code>显示回收此对象。或者等Javascript自动回收，或卸截加载人脚本, 都会回收掉对象。静态和非静态方法都可以调用，甚至可以替换方法的实现，从内部抛出一个异常。默认使用应用的类加载器， 也可以指一个不同的类加载器实例给Java.classFactory.loader。注意，所有的方法封装提供clone(options)方法去创建一个NativeFunction类型的方法封装。<br>    Java.openClassFile(filePath), 打开filePath下的.dex文件, 返回一个对象，提供load(), getClassNames()方法。<br>    Java.choose(className, callbacks), 在jvm的堆中查找可用的className实例，callbacks回调包括onMatch(instance), onComplete(), 在onMatch中调用Java.cast() 会提前结束遍历，并返回一个字符串。<br>    Java.retain(obj), 复制javascript封装的对象, 以提供后续替换对象中的方法外部使用。<br>    Java.cast(handle, klass), 从Java.use()返回给定类klass的句柄下的现有实便的javascript的封装对象。这个javascript封装的对象有一个class属性去得到被包装的类，<code>$className</code> 属性来获得类名。<br>    Java.array(type, elements), 创建一个type类型的java数组，并将javascript数组中的elements转成type类型并添加到java数组中。返回的java数组类似于JS数组，但是可以传引用到Java API以改变其中的内容。<br>    Java.isMainThread(), 判断调用者是否在主线程。<br>    Java.registerClass(spec), 创建一个新的Java类，返回JS包装器，其中spec对象包含：<br>        name(类名),<br>        superClass(继随自java.lang.Object的父类),<br>        implements(可选，实现的接口类数组),<br>        fields(可选，指明每个字段类型和名称可暴露的对象),<br>        methods(可选, 指明需实现的方法的对象)。<br>    Java.deoptimizeEverything(), 强制使用VM使用其解释器执行所有操作。在某些情况下，有必要防止优化绕过方法的hook, 并允许ART的Instrumentation API用于跟踪运行时。<br>    Java.vm, 一个JS对象， 包含下列方法:<br>        perfom(fn), 等同于 Java.perform(fn)<br>        getEnv(), 得到当前线程的JNIEnv包装器，如果当前线程未附加到VM, 则抛出异常。<br>        tryGetEnv(), 尝试去获取 JNIEnv包装器，<br>        JNIEnv, 如果当前线程未附着于VM, 返回null.<br>    Java.classFactory, 用于实现默认的classLoader， 如，Java.use() 使用应用的主类加载器。<br>    Java.ClassFactory, 首字母大写了， 包含了以下属性:<br>        get(classCloader), 获得一个给定的类加载器的class factory实例, 幕后使用的默认的class factory 仅与应用程序的主类加载器交互。其他的类加载器可以通近Java.enumerateClassLoaders() 来发现，然后与此api来交互。<br>        loader, 只读的当前类加载的类加载器包装器，对于默认的工厂类, 只在首次执行Java.perform时被赋值。<br>        cacheDir, 当前使用的cacheDir路径， 对于默认的工石类，只在首次执行Java.perform时被赋值。<br>        tempFileNaming, 指定临时文件命名规则的对象如<code>{prefix: &#39;frida&#39;, suffix,&#39;dat&#39;}</code><br>        use(className), 类似于Java.use(),但是此方法用于指定的类加载器<br>        openClassFile(filePath), 类似于Java.openClassFile(),但是此方法用于指定的类加载器<br>        choose(className, callbacks), 类似于Java.choose(),但是此方法用于指定的类加载器<br>        retain(obj), 类似于Java.retain(),但是此方法用于指定的类加载器<br>        cast(handle, klass), 类似于Java.cast(),但是此方法用于指定的类加载器<br>        array(type, elements),类似于Java.array(),但是此方法用于指定的类加载器<br>        registerClass(spec), 类似于Java.registerClass(),但是此方法用于指定的类加载器 </p>
<ol start="7">
<li>CPU Instruction<br>对CPU指令级操作的工具, 直接操作寄存器, 栈，缓存, 这一块暂时也不用太关注， 不管是应用还是研究,都还没到这个层次， 后面有需求或者技术追求的时候再回过头看吧。目前支持4个平台</li>
</ol>
<p>Instruction<br>    指令操作方法提供<br>    Instruction.parse(target) 将一个NativePointer所代表的内存地址解析成一个对象， 包括address, next, size, mnemonic, opStr, operands, regsRead, regsWritten, groups, toString()</p>
<p>X86Writer/X86Relocator/X86 enum types<br>    x86架构</p>
<p>ArmWriter/ ArmRelocator/ Arm enum types<br>    arm架构</p>
<p>ThumbWriter/ThumbRelocator<br>    Thumb架构还是第一次听说</p>
<p>MipsWriter/MipsRelocator /Mips enum types<br>    Mips架构</p>
<ol start="8">
<li>Other</li>
</ol>
<p>Console</p>
<pre><code>日志打印, console.log(line), console.warn(line), console.error(line)</code></pre><p>Hexdump</p>
<pre><code>可以dump内存中模块的函数， 传入首地址
hexdump(target[,options])</code></pre><p>Shorthand<br>    类型new操作的简化函数<br>    int64(v)  &lt;–&gt; new Int64(v)<br>    uint64(v) &lt;–&gt; new UInt64(v)<br>    ptr(s)    &lt;–&gt; new NativePointer(s)<br>    NULL      &lt;–&gt; ptr(“0”)</p>
<p>frida 本机进程与注入的目标进程通信</p>
<pre><code>recv([type, ]callback), 只会回调一次

send(message[, data]) 发送JSON可序列化的 java对象消息,

    send函数并不高效， 建议将多个信息打包作一起发送一次，如果想快速看到输出的话

rpc.exports

    python脚本中嵌入js就是这种方式， 还是以使用Node.js的框架</code></pre><p>时间事件<br>    setTimeout(func, delay[, …parameters]), 超时回调, 返回一个id<br>    clearTimeout(id)<br>    setInterval(func, delay[, …parameters]), 定时回调, 返回一个id<br>    clearInterval(id)<br>    setImmediate(func[, …parameters]) 尽可能快地在Frida Javascript线程调用func, 返回一个id<br>    clearImmediate(id)</p>
<p>垃圾回收<br>    gc() 强制进行垃圾回收</p>
<h3 id="扩展工具"><a href="#扩展工具" class="headerlink" title="扩展工具"></a>扩展工具</h3><p><a href="https://pypi.org/project/objection/" target="_blank" rel="noopener">objection官方</a><br><a href="https://www.anquanke.com/post/id/197657" target="_blank" rel="noopener">objection使用教程</a></p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/SRE/" rel="tag"># SRE</a>
              <a href="/tags/Frida/" rel="tag"># Frida</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/10/31/android/reverse/xposed-module-develop/" rel="prev" title="xposed模块开发">
      <i class="fa fa-chevron-left"></i> xposed模块开发
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/12/24/nms/opennms-installed-on-wsl-md/" rel="next" title="在windows wsl2 下配置OpenNMS">
      在windows wsl2 下配置OpenNMS <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#安装"><span class="nav-number">1.</span> <span class="nav-text">安装</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#框架"><span class="nav-number">2.</span> <span class="nav-text">框架</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#JavaScript-API"><span class="nav-number">3.</span> <span class="nav-text">JavaScript API</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#扩展工具"><span class="nav-number">4.</span> <span class="nav-text">扩展工具</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Sophimp"
      src="/images/avatar.png">
  <p class="site-author-name" itemprop="name">Sophimp</p>
  <div class="site-description" itemprop="description">A dream begin</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">86</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">19</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">89</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/sophimp" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;sophimp" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:sophimp2020@126.com" title="E-Mail → mailto:sophimp2020@126.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Sophimp</span>
</div>

<!--
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a>
  </div>
-->

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="Total Visitors">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="Total Views">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
